﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Coffee
{
    public partial class Management : Form
    {
        public Management()
        {
            InitializeComponent();
        }

        private void navProduct_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Product pro = new Product();
            pro.MdiParent = this;
            pro.Show();
        }

        private void navBarItem10_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ImportProduct Impro = new ImportProduct();
            Impro.MdiParent = this;
            Impro.Show();
        }

        private void navUnit_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            iControls.BaseForm.BaseList ff = new iControls.BaseForm.BaseList();
            ff.Name = "Units";
            ff.Text = "Đơn vị tính";
            Lists.Lst_Unit cl = new Lists.Lst_Unit();
            ff._BaseList = cl;
            ff.grid.AllowDefine = true;
            ff.grid.ShowContextMenu = true;
            ff.MdiParent = this;
            ff.Show();
        }

        private void navViTri_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            iControls.BaseForm.BaseList ff = new iControls.BaseForm.BaseList();
            ff.Name = "Lst_Position";
            ff.Text = "Vị trí bàn";
            Lists.Lst_Position cl = new Lists.Lst_Position();
            ff._BaseList = cl;
            ff.grid.AllowDefine = true;
            ff.grid.ShowContextMenu = true;
            ff.MdiParent = this;
            ff.Show();
        }

        private void navNhom_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            iControls.BaseForm.BaseList ff = new iControls.BaseForm.BaseList();
            ff.Name = "Lst_ProductGroup";
            ff.Text = "Nhóm sản phẩm";
            Lists.Lst_ProductGroup cl = new Lists.Lst_ProductGroup();
            ff._BaseList = cl;
            ff.grid.AllowDefine = true;
            ff.grid.ShowContextMenu = true;
            ff.MdiParent = this;
            ff.Show();
        }

        private void NavSupplier_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Supplier supplier = new Supplier();
            
            supplier.MdiParent = this;
            supplier.Show();
        }

        private void NavFormula_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Formula formula = new Formula();
            formula.MdiParent = this;
            formula.Show();
        }

        private void navProduct_LinkClicked_1(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Form1 f = new Form1();
            f.MdiParent = this;
            f.Show();
        }
    }
}
